<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body,
    html {
      height: 100%;
      background-color: #212528;
    }

    .box {
      height: 200px;
      width: 400px;
      margin: 200px auto;
      display: flex;
      border: 1px solid #323A32;
      position: relative;
    }

    .box .line {
      position: absolute;
      background: #b1db56;
      transition: all .3s;
    }

    .box .line-top {
      height: 0px;
      width: 400px;
      left: 200px
    }

    .box .line-right {
      height: 200px;
      width: 0px;
      top: 100px;
      right: 0
    }

    .box .line-bottom {
      height: 0px;
      width: 400px;
      left: -200px;
      bottom: 0;
    }

    .box .line-left {
      height: 200px;
      width: 0px;
      top: -100px;
    }


    .box:hover .line-top {
      height: 1px;
      left: 0
    }

    .box:hover .line-right {
      width: 1px;
      top: 0
    }

    .box:hover .line-bottom {
      height: 1px;
      left: 0
    }

    .box:hover .line-left {
      width: 1px;
      top: 0
    }


    .boxImg {
      height: 100%;
      width: 200px;
      padding: 30px;
      box-sizing: border-box;
    }

    .boxImg img {
      height: 100%;
      width: 100%;
      transition: all .3s;
    }

    .box:hover .boxImg img {
      transform: rotate(360deg)
    }

    .box:hover {
      box-shadow: 0px 0px 5px #AAC778;
    }

    .pre {
      padding: 30px 10px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .pre p {
      margin: 5px 0;
      color: #fff;
      font-size: 12px;
    }

    .pre p:nth-of-type(1) {
      color: #AAC778;
      font-size: 14px;
      font-weight: 600;
    }

    .pre p:nth-of-type(2) {
      color: #AAC778;
      font-weight: 600;
    }
  </style>
</head>

<body>
  <div class="box">
    <div class="line line-top"></div>
    <div class="line line-right"></div>
    <div class="line line-bottom"></div>
    <div class="line line-left"></div>
    <div class="boxImg">
      <img src="./images/jirx.jpg" alt="">
    </div>
    <div class="pre">
      <p>一个科技的时代</p>
      <p>— 需要科技感 —</p>
      <p>我们需要科技</p>
      <p>科技展望未来</p>
    </div>
  </div>
</body>

</html>